﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using Usermanagment.VisualDisplay;
using Usermanagment.VisualDisplay.UnderTheHood;

namespace Usermanagment
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {

			SerializeDat serialdat = new SerializeDat();
			ServerData servdat = serialdat.work();
			if (servdat != null)
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run(new Login(servdat));
			}
			else
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run(new FirstRun());
			}
		
        }
    }
}
